package com.sxbbc.common.core.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sxbbc.common.core.entity.jz.IndustryDetail;
import com.sxbbc.common.core.mapper.jz.IndustryDetailMapper;
import com.sxbbc.common.core.service.IIndustryDetailService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 行业信息明细表 服务实现类
 * </p>
 *
 * @author leehao
 * @since 2019-05-09
 */
@Service
public class IndustryDetailServiceImpl extends ServiceImpl<IndustryDetailMapper, IndustryDetail> implements IIndustryDetailService {

    @Override
    public boolean handleIndustryStatus(Integer id, Integer status) {
        IndustryDetail detail = super.getById(id);
        detail.setStatus(status);
        return super.updateById(detail);
    }
}
